#include<stdio.h>
#include<stdlib.h>
#include "background.h"



BITMAP* load_background_bmp(char chemin_background[])
{
	BITMAP* Background;

	Background=load_bitmap(chemin_background, NULL);
		if(Background == NULL){
			set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
			allegro_message("Unable to load image !\n%s\n", allegro_error);
			return (NULL);
		}
return (Background);

}


void draw_background(BITMAP *Background,BITMAP*Buffer)
{
	blit(Background, Buffer, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
}

void destroy_background(BITMAP * Background)
{
	destroy_bitmap(Background);
}

